<?php
/**
 * Created by PhpStorm.
 * User: Guangpeng Chen
 * Date: 15-8-27
 * Time: 下午2:37
 */
/*
 *  id：1794    加40，
    id：50060  清空账户余额，支付宝退回660
    订单号：2019091
 */
include("/var/www/html/new/com.inc.php");
include("/var/www/html/new/d/class/SoapInit.class.php");

define('ACTION_MONEY_ADD',0);
define('ACTION_MONEY_CUT',1);
//$mid = 1794;

//[刘新杰]给签到海南充值100元|11128|21207
//[赵福堂]给签到海南充值330元|16746|21207


/*
 * 资金修改模块 (
 * 会员ID，
 * 操作人员ID，
 * 金额，
 * 修改动作action：0增加1减少
 * 修改类型dmode：0账户余额1可用供应商余额2信用额度，
 * 供应商ID[dmode>0时必填]，
 * [dtype]，
 * [ptype]
 * [订单号orderid]，
 * [备注memo]）
注：如果自定义dtype,ptype，则必须是数字，参考资金明细表 pft_member_journal
501：信用额度无法冻结
dtype[6]+action[0]冻结资金
dtype[6]+action[1]解冻资金
*/
//exit;
//21207扣款
$soap = SoapInit::GetSoapInside();
////16644
$m = 400 * 100;
//
//$res = $soap->PFT_Member_Fund_Modify(11142, 1, $m, ACTION_MONEY_ADD, 1, 55,4,2,'','微信支付充值');
//$res = $soap->PFT_Member_Fund_Modify(11142, 1, $m, ACTION_MONEY_CUT, 1, 55,4,2,'','微信支付充值');
//$res=$soap->PFT_Member_Fund_Modify($did,$did,$total_fee,0,1,$aid,4,2,'','微信支付充值');
var_dump($res);
exit;
//
//$res = $soap->PFT_Member_Fund_Modify(15378, 1, 22000, ACTION_MONEY_ADD, 1, 55,4, 2,'', '微信充值');
//var_dump($res);
//
//$res = $soap->PFT_Member_Fund_Modify(16644, 1, 30000, ACTION_MONEY_ADD, 1, 55,4, 2,'', '微信充值');
//var_dump($res);
//供应商账户加钱
//$res2=$soap->PFT_Member_Fund_Modify(55,1,22000,0,0,"",3,0,'','微信充值');
//var_dump($res2);
//
//$res = $soap->PFT_Member_Fund_Modify(16644, 1, 30000, ACTION_MONEY_ADD, 1, 55,4, 2,'', '微信充值');
//var_dump($res);
//供应商账户加钱
//$res2=$soap->PFT_Member_Fund_Modify(55,16644,30000,0,0,"",3,0,'','微信充值');
//var_dump($res2);
//
//$res = $soap->PFT_Member_Fund_Modify(16644, 1, 1000, ACTION_MONEY_ADD, 1, 55,4, 2,'', '微信充值');
//var_dump($res);
//供应商账户加钱
//$res2=$soap->PFT_Member_Fund_Modify(55,16644,1000,0,0,"",3,0,'','微信充值');
//var_dump($res2);



//$res=$soap->PFT_Member_Fund_Modify($did,$did,$total_fee,0,1,$aid,4,2,'','微信充值');

//$soap = SoapInit::GetSoapInside();
//$res = $soap->PFT_Member_Fund_Modify(1794, 0, 4000, ACTION_MONEY_ADD, 0, null,0, 0,2019091, '撤改订单补款');
//var_dump($res);
//$res = $soap->PFT_Member_Fund_Modify(50060, 0, 74000, ACTION_MONEY_CUT, 0, null,0, 0,2019091, '撤改订单退款');
//var_dump($res);